package cd.cdyb.sms.dao;

import cd.cdyb.sms.domain.Administrators;
import cd.cdyb.sms.domain.Employee;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AdministratorsDao extends BaseMapper<Administrators> {

    /**
     * 根据手机号和平台查询员工信息
     *
     * @param username 手机号
     * @return 员工信息
     */
    @Select("select * from  administrators where username = #{username}")
    Administrators getAdministratorsByUsername(@Param("username") String username);

}
